package com.guli.gulimall.product.dao;

import com.guli.gulimall.product.entity.SpuInfoDescEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guli.gulimall.product.vo.Attrs;
import com.guli.gulimall.product.vo.SkuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * spu信息介绍
 * 
 * @author wzh
 * @email sunlightcs@gmail.com
 * @date 2021-12-09 15:49:12
 */
@Mapper
public interface SpuInfoDescDao extends BaseMapper<SpuInfoDescEntity> {

    List<SkuVo> findSpuById(@Param("spuId") Long spuId);

    Set<Attrs> findSpById(@Param("spuId") Long spuId);

    List<Attrs> findSkById(@Param("skuId") Long skuId);
}
